<template>
	<view class="container" :style="'height:'+screenHeight+'px!important;'">
		<view class="uni-nav">
			<image class="uni-nav-left-img" src="../../static/icon/back.png" @click="back()"></image>
			<label>备份助记词</label>
			<image class="uni-nav-right-img"></image>
		</view>
		<view class="mnemonic_bg">
			<text v-for="(item,index) in mnemonicList" :key="index">{{item}}</text>
		</view>
		<view class="mnemonic_hint">
			<text style="font-size: 26upx;color: #DAC6A2;">请认真按顺序抄写上方的助记词，并保存在只有您知道的地方；助记词用于恢复钱包</text>
		</view>
		<view class="next_step">
			<image src="../../static/icon/next.png" @click="navTo('ensure_mnemonic')"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				screenHeight: "",
				mnemonicList: []
			}
		},
		onLoad() {
			this.screenHeight = uni.getSystemInfoSync().windowHeight;
		},
		mounted() {
			this.mnemonicList = ['own', 'wgzcb', 'wun', 'sdefg', 'laisf', 'sakd', 'tjsfgs', 'urhalhf', 'app', 'abuogf', 'euer',
				'wuekl'
			];
		},
		methods:{
			navTo(url){
			 uni.navigateTo({
			 	url:url
			 })
			},
			back(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style>
	.container {
		background-image: url(../../static/icon/wallet_bg.png);
		background-size: 100% 100%;
	}

	.mnemonic_bg {
		margin-top: 71upx;
		border: 1upx solid #FDF2D0;
		border-radius: 20upx;
		height: 395upx;
		margin-right: 40upx;
		margin-left: 40upx;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		padding: 68upx;
	}

	.mnemonic_bg text {
		font-size: 28upx;
		color: white;
		width: 160upx;
		text-align: center;
	}

	.mnemonic_hint {
		margin-top: 56upx;
		margin-left: 62upx;
		margin-right: 62upx;
	}

	.next_step {
		display: flex;
		justify-content: center;
		margin-top: 182upx;
	}

	.next_step image {
		width: 288upx;
		height: 82upx;
	}
</style>
